package org.dstart.air.window.sub.draw
{
	import flash.display.Sprite;
	
	public class DrawResizeButton extends DrawSimpleButton
	{
		public function DrawResizeButton(baseColor:uint=0x000000, overColor:uint=0xCCCCCC)
		{
			super(baseColor, overColor);
		}
		
		protected override function DrawImage(spr:Sprite, col:uint):void
		{
			spr.graphics.beginFill(0xFFFFFF, 0);
			spr.graphics.drawRect(0, 0, 8, 8);
			spr.graphics.endFill();
			
			spr.graphics.lineStyle(.5, col, 1);
			spr.graphics.moveTo(1, 7);
			spr.graphics.lineTo(7, 1);
			spr.graphics.moveTo(3, 7);
			spr.graphics.lineTo(7, 3);
			spr.graphics.moveTo(5, 7);
			spr.graphics.lineTo(7, 5);
		}
	}
}